/*
 * Copyright (c) 2025 Industrial Software Feature Database
 */
package com.comac.ins.isfd.domain.bo;

import com.comac.ins.common.core.validate.AddGroup;
import com.comac.ins.common.core.validate.EditGroup;
import com.comac.ins.common.mybatis.core.domain.BaseEntity;
import com.comac.ins.isfd.domain.IsfdMetadataDatabase;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 元数据管理-要素库业务对象 isfd_metadata_database
 *
 * @author Lion Li
 * @date 2024-09-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = IsfdMetadataDatabase.class, reverseConvertGenerate = false)
public class IsfdMetadataDatabaseBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 要素库类型名称
     */
    @NotBlank(message = "要素库类型名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String name;

    /**
     * 要素数据库类型，材料库、算法库、参数库等等
     */
    @NotBlank(message = "要素数据库类型，材料库、算法库、参数库等等不能为空", groups = {AddGroup.class, EditGroup.class})
    private String databaseType;

    /**
     * 数据库模式，MySQL、MongoDB、OSS
     */
    @NotBlank(message = "数据库模式，MySQL、MongoDB、OSS不能为空", groups = {AddGroup.class, EditGroup.class})
    private String databaseSchema;

    /**
     * 访问权限，管理员、普通用户、用户组
     */
    @NotBlank(message = "访问权限，管理员、普通用户、用户组不能为空", groups = {AddGroup.class, EditGroup.class})
    private String permissions;

    /**
     * 表（集合）英文名称，多个的话用逗号隔开
     */
    @NotBlank(message = "表（集合）英文名称，多个的话用逗号隔开不能为空", groups = {AddGroup.class, EditGroup.class})
    private String storageLocation;

    /**
     * 是否删除，默认是0-未删除，1-已删除
     */
    @NotNull(message = "是否删除，默认是0-未删除，1-已删除不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long isDeleted;

    /**
     * 数据格式，结构化、半结构化、非结构化
     */
    @NotNull(message = "数据格式，结构化、半结构化、非结构化", groups = {AddGroup.class, EditGroup.class})
    private String databaseFormat;

    /**
     * 业务场景id
     */
    private Long sceneId;
    /**
     * 创建人名称
     */
    private String createByName;

}
